import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import * as echarts from 'echarts';

import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';
import './assets/iconFont/iconfont.css';
import Element from 'element-ui';
import highcharts from 'highcharts';
import highchartsVue from 'highcharts-vue';
import highcharts3d from 'highcharts/highcharts-3d';

Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
Vue.use(Element);
Vue.use(highchartsVue);
highcharts3d(highcharts);

Vue.prototype.$mouseEvent = function(dom, isOn) {
    isOn ? $(dom.target).addClass('active') : $(dom.target).removeClass('active');
};

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app');
